define(function() {
    'use strict';
    return {
        getQueryParam:function(name){
            let searchs =  location.search.slice(1).split('&')
            let obj = {}
            searchs.forEach(item=>{
                let [key,value] = item.split('=')
                obj[key] = value
            })
            return obj[name] || null
        }
    }
});